package hy.beans;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class Item {
    Integer id;
    String orderNo;//订单号
    Integer bookId;//产品ID
    Integer num;//订单中该商品的数量，用来（1）统计订单总价，（2）减库存用。

    public Item(String orderNo, Integer bookId, Integer num) {
        this.orderNo = orderNo;
        this.bookId = bookId;
        this.num = num;
    }
}